package lab02.test12;

public class Rectangular extends Shape {

    //属性:宽和高
    double width;
    double height;

    //Ctrl + O      重写

    @Override
    double area() {
        return width * height;
    }

    @Override
    double perimeter() {
        return 2 * width + 2 * height;
    }

    Rectangular() {}

}
